import { createRouter, createWebHistory } from 'vue-router'

const routes = [
  {
    path: '/',
    name: 'base',
    component: () => import(/* webpackChunkName: "home" */ '../views/Base.vue')
  },
  {
    path: '/todo',
    name: 'todo',
    component: () => import(/* webpackChunkName: "todo" */ '../views/TodoList.vue')
  },
  {
    path: '/phone',
    name: 'phone',
    component: () => import(/* webpackChunkName: "phone" */ '../views/Phone.vue')
  },
  {
    path: '/ele',
    name: 'ele',
    component: () => import(/* webpackChunkName: "ele" */ '../views/Ele.vue')
  },
  {
    path: '/res',
    name: 'res',
    component: () => import(/* webpackChunkName: "res" */ '../views/MyRequest.vue')
  }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
